// const store = combineRducer({
//     a:aStore,
//     b:bStore
// })

function combineReducers(reducers){
    const keys = Object.keys(reducers)
    return (state= {}, action)=>{
        keys.forEach((k)=>{
            state[k] = reducers[k](state[k], action)
           
        })
        return state
    }
    
}

export default combineReducers